using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pasta.Medio.Domain
{
	public class RecordingsRepository : Repository<Recording>
	{
		public RecordingsRepository()
		{
		}

		public List<Recording> List()
		{
			try
			{
				return GetAll().ToList();
			}
			catch(Exception ex )
			{
				var msg = ex.Message;
			}
			return null;
		}

		public void Clear()
		{
			Program.Context.ExecuteStoreCommand("delete from Recording");
			Program.Context.SaveChanges();
		}

		public void Save()
		{
			SaveChanges();
		}
	}
}
